extends Node

var size = 16
#英雄出生位置
var spawnPoint :Vector2 = Vector2(5,2)
var neighbors = [Vector2(1,0),Vector2(-1,0),Vector2(0,1),Vector2(0,-1)]

#设置移动点id
func id(point:Vector2) -> float:
	var a = point.x
	var b = point.y
	return (a+b) * (a+b+1) / 2 +b
